Skip to content

Squirre17/hbp-attack-demo

Repository files navigation

fork from https://github.com/veritas501/hbp_attack_demo

hbp_attack demo

参考P0博客:https://googleprojectzero.blogspot.com/2022/12/exploiting-CVE-2022-42703-bringing-back-the-stack-attack.html

搓了个vuln module,假装我们有个内核任意地址写的原语,但开了kaslr暂时没有地址泄露。

于是可以借助cpu_entry_area不参与kaslr随机化的特性和硬件断点可以在内核态触发的特性,完成内核栈上kaslr和canary的泄露并通过ROP攻击提权。

blog: https://veritas501.github.io/2023_03-22-一种借助硬件断点的提权思路分析与演示

wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.103.tar.xz 

ctrl + \ 退出qemu

带符号的vmlinux太大了 会被reject 只能用bzImage

About

Linux kernel hbp exploit method demo. (i.e. the degradation version of CVE-2022-42703)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published